import axios from "axios";
const req = axios.create({
  // httpsAgent: new https.Agent({
  //   rejectUnauthorized: false,
  // }),
});

// 请求拦截器
req.interceptors.request.use((config) => {
  return config;
});

// 相应拦截器
req.interceptors.response.use(
  (res) => {
    return res.data;
  },
  (error) => {
    return error;
  }
);

export default req;
